<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file = "/common/init.jsp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<jsp:include page="/header/Header.jsp"></jsp:include>
<script type="text/javascript" src="/common/js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	
	$("#bt").click(function(){
	
	<% if( session.getAttribute("logid") == null){ %> 		
			alert("로그인을 해주세요");
	<%}else{%>
		
		window.location="/BBS/bbs1_write.jsp";
	<%}%>
	});
});


</script>
</head>
<body>
<table border=1 width="1000px" height="1000px">
		<tr>
			<td width="10%"></td>
			<td valign="top">
		          <table border=1 width=100%>
					<tr height=100px></tr>
						<tr>
							<td align="center"width=30px;>no</td>
							<td align="center"width="80px;">name</td>
							<td align="center"width="600px;">sub</td>
							<td align="center">date</td>
							<td align="center">reco</td>
							<td align="center">nreco</td>
						</tr>
					<%  l = (List<Map<String,Object>>)result.get("List"); 
					for(Map<String,Object> vo : l){%>	
						<tr>
							<td align="center"width=30px;><%=vo.get("seq") %></td>
							<td align="center"width="80px;"><%=vo.get("name") %></td>
							<td align="center"width="600px;"><%=vo.get("sub") %></td>
							<td align="center"><%=vo.get("date") %></td>
							<td align="center"><%=vo.get("reco") %></td>
							<td align="center"><%=vo.get("nreco") %></td>
						</tr>
						<%}%>
						<tr>
						<td colspan="6">
						<%out.println(Pasing.PageList());%>
					    </td>
						</tr>
						
						<tr>
						<td colspan="6" align="right"><input type="button" id="bt" value="write"/></td>
						</tr>
				 </table>
				 <table>
				 
				 </table>
			</td>
	    </tr>
</table>
</body>
</html>